<?php 
/* SVN FILE: $Id$ */
/* Housee Test cases generated on: 2009-09-09 21:32:32 : 1252546352*/
App::import('Model', 'Housee');

class HouseeTestCase extends CakeTestCase {
	var $Housee = null;
	var $fixtures = array('app.housee', 'app.registration');

	function startTest() {
		$this->Housee =& ClassRegistry::init('Housee');
	}

	function testHouseeInstance() {
		$this->assertTrue(is_a($this->Housee, 'Housee'));
	}

	function testHouseeFind() {
		$this->Housee->recursive = -1;
		$results = $this->Housee->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Housee' => array(
			'id'  => 1,
			'registration_id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet',
			'type'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>